package com.ruoyi.project.modules.processBranchEnd.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分支结束对象 t_process_branch_end
 * 
 * @author smallrain
 * @date 2022-04-03
 */
public class ProcessBranchEnd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分支结束ID */
    private Long branchEndId;

    /** 结束类型 （1-分支结束，2-流程结束） */
    @Excel(name = "结束类型 ", readConverterExp = "1=-分支结束，2-流程结束")
    private String endType;

    /** 结束方式 （1-正常结束，2-异常结束） */
    @Excel(name = "结束方式 ", readConverterExp = "1=-正常结束，2-异常结束")
    private String endWay;

    /** 异常结束错误码 */
    @Excel(name = "异常结束错误码")
    private String errorCode;

    /** 流程分支ID */
    @Excel(name = "流程分支ID")
    private Long processBranchId;

    /** 接口ID */
    @Excel(name = "接口ID")
    private Long interfaceId;

    private String errorCodeCategoryCode;

    private String errorCodeCategoryName;

    private String errorCodeDetail;

    public String getErrorCodeDetail() {
        return errorCodeDetail;
    }

    public void setErrorCodeDetail(String errorCodeDetail) {
        this.errorCodeDetail = errorCodeDetail;
    }

    public String getErrorCodeCategoryCode() {
        return errorCodeCategoryCode;
    }

    public void setErrorCodeCategoryCode(String errorCodeCategoryCode) {
        this.errorCodeCategoryCode = errorCodeCategoryCode;
    }

    public String getErrorCodeCategoryName() {
        return errorCodeCategoryName;
    }

    public void setErrorCodeCategoryName(String errorCodeCategoryName) {
        this.errorCodeCategoryName = errorCodeCategoryName;
    }

    public void setBranchEndId(Long branchEndId)
    {
        this.branchEndId = branchEndId;
    }

    public Long getBranchEndId() 
    {
        return branchEndId;
    }
    public void setEndType(String endType) 
    {
        this.endType = endType;
    }

    public String getEndType() 
    {
        return endType;
    }
    public void setEndWay(String endWay) 
    {
        this.endWay = endWay;
    }

    public String getEndWay() 
    {
        return endWay;
    }
    public void setErrorCode(String errorCode) 
    {
        this.errorCode = errorCode;
    }

    public String getErrorCode() 
    {
        return errorCode;
    }
    public void setProcessBranchId(Long processBranchId) 
    {
        this.processBranchId = processBranchId;
    }

    public Long getProcessBranchId() 
    {
        return processBranchId;
    }
    public void setInterfaceId(Long interfaceId) 
    {
        this.interfaceId = interfaceId;
    }

    public Long getInterfaceId() 
    {
        return interfaceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("branchEndId", getBranchEndId())
            .append("endType", getEndType())
            .append("endWay", getEndWay())
            .append("errorCode", getErrorCode())
            .append("processBranchId", getProcessBranchId())
            .append("interfaceId", getInterfaceId())
            .toString();
    }
}
